Tags: #◇Computer Science #◇STT101A #◇Conceptual #◇Contingency Table
◇Overview
A Contingency Table (two-way cross-tabulation table) organizes bivariate categorical counts or probabilities across rows (levels of variable ) and columns (levels of variable ). It allows immediate extraction of joint, marginal, and conditional probabilities.
◇Key Definitions
- Joint Probability (): Probability in interior cell , computed as where is the grand total.
- Marginal Probability ( or ): Row total or column total along the margins.
- Conditional Probability (): Interior cell divided by its corresponding column (or row) marginal total: .
◇Worked Example
| Traffic Type | Flagged () | Passed () | Row Total |
|---|---|---|---|
| Malicious () | |||
| Benign () | |||
| Column Total |
- Joint: .
- Marginal: .
- Conditional: .
◇References & Navigation
- Previous Topic: ◇Independent Events
- Next Topic: ◇Partition of Sample Space
- Related Notes: ◇Total Probability Rule, ◇Generalized Multiplication
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
In a contingency table with grand total , how is a joint probability calculated?
Using the worked example table (), what is the conditional probability that a benign packet is flagged?
Why are the row and column totals in a two-way table called marginal distributions?
How can you test whether row event and column event are statistically independent directly from a contingency table of counts?
Using the worked example table (), what is ?